<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>资产</title>
 <meta charset="utf-8">
<link href="__CSS__/bootstrap.min.css" rel="stylesheet">
<link href="__CSS__/bootstrap.css" rel="stylesheet">
<link href="__CSS__/Login.css" rel="stylesheet">
<script src="__JS__/jquery.js"></script>
<script src="__JS__/layer/layer.js"></script>
<script src="__JS__/bootstrap.min.js"></script>

</head>

<style type="text/css">

     .div0{

            background-color:#121b38;
        }

.inputys{background-color:rgba(255,255,255,0); outline: none;height:40px; border:0px; color:#333;width:100%;}
* {padding:0;margin:0;}

table {border-collapse:collapse;border:1px #424664 solid;margin:0 auto; color:#bdc8e9;}
th, td {border:1px #424664 solid;text-align:center;font-size:12px;line-height:30px;}
th {line-height:50px;}
/*模拟对角线*/
.out {width:0px;height:0px;position:relative;}
b {font-style:normal;display:block;position:absolute;top:-23px;left:30px;width:77px; line-height:15px;}
em {font-style:normal;display:block;position:absolute;top:-5px;left:-30px;width:100px; line-height:15px;}
span.line{ display:block; width:100px; height:1px; background:#424664;-webkit-transform:rotate(28deg);-ms-transform:rotate(28deg); -moz-transform:rotate(28deg); transform:rotate(28deg); position:absolute; top:0px; left:-3px;}
option {
    background: #F1F3F4;
}
.time-selected:active,.time-selected:hover,,.time-selected:focus {
    background: red;
}

#page a {
    text-decoration:none;
}
.close-all {
    text-align: center;
}
.close-img {
    width: 55px;
}
.close-ck {
    padding-top: 11px;
}
.row-fluid{
    margin-top: 10px;
}

</style>

    <script type="text/javascript">
        var count = 1;
        function ChangeBGC(obj)
        {
            //有了简单 计数变量 配合 if-else判断
            //就可以实现 颜色的转变
            if(count%2!=0)
            {
                obj.style.backgroundColor = "#192857";
            }
            else
            {
                obj.style.backgroundColor = "#121b38";
            }
            count++;
        }
    </script>

<body style="padding-top: 38px">
<!--<div class="container">-->
         <!--<div style=" float:right; padding-top:15px;">-->
			<!--&lt;!&ndash; <img src="__IMG__/yj.png" alt="" width="27" height="15"  />	 &ndash;&gt;-->
	     <!--</div>-->

          <!--<div class="row-fluid" style=" background-image:url(__IMG__/bg1.png); height:120px; border-radius: 4px; margin-top:20px;">-->
          <!--<div  class="t1" style=" text-align:right;padding-top:5px; padding-right:15px;">-->
                <!--<a href="{:U('Finance/history')}" style="color: #fff;text-decoration:none;">{:L('_ZD_')}</a>-->
          <!--</div>-->
              <!--<div style="padding: 1rem;">-->
              <!--<div  class="t1" >资产券 {$userData['z1']}</div>-->
              <!--<div  class="t1" >ASSET {$userData['z7']}</div>-->
              <!--<div  class="t1" >USDT {$userData['z8']}</div>-->
          <!--&lt;!&ndash;<div  class="t1" style=" text-align:center;">{:L('_ZZCGZ_')}</div>&ndash;&gt;-->
          <!--&lt;!&ndash;<div  style=" text-align:center;  font-size:22px; color:#fff;">{$lockData + $userData['reward1']} GBC</div>&ndash;&gt;-->
          <!--&lt;!&ndash;<div  style=" text-align:center;  font-size:14px; color:#fff;">¥ {$totalDataCny | default='0.00'}</div>&ndash;&gt;-->
              <!--</div>-->
	     <!--</div>-->



       <!--<div class="row-fluid " style=" margin-top:15px; height:30px;">-->
        <!--<a  href="{:U('Finance/wallet')}">-->
           <!--<div class="qk" style=" width:30%; float:left;height:30px; line-height:30px;" class="div0" onclick="ChangeBGC(this)">-->

              <!--<p class="t1" style=" text-align:center; color:#2cd0da;">充提币</p>-->

         <!--</div>-->
        <!--</a>-->
        <!--<div  style=" width:5%; float:left;"> &nbsp;&nbsp;</div>-->

        <!--<a  href="{:U('Finance/transfer')}">-->
            <!--<div class="qk" style=" width:30%; float:left;height:30px; line-height:30px; " class="div0" onclick="ChangeBGC(this)">-->
                <!--&lt;!&ndash;<p class="t1" style=" text-align:center; color:#2cd0da; ">{:L('_ZZ_')}</p>&ndash;&gt;-->
                <!--<p class="t1" style=" text-align:center; color:#2cd0da; ">闪兑</p>-->
            <!--</div>-->
        <!--</a>-->

        <!--<div  style=" width:5%; float:left;">&nbsp;&nbsp; </div>-->

        <!--&lt;!&ndash;<a  href="{:U('Finance/withdraw')}">&ndash;&gt;-->
            <!--&lt;!&ndash;<div class="qk" style=" width:30%; float:right;height:30px; line-height:30px;" class="div0" onclick="ChangeBGC(this)">&ndash;&gt;-->
                <!--&lt;!&ndash;<p class="t1" style=" text-align:center; color:#2cd0da; ">{:L('_TB_')}</p>&ndash;&gt;-->
            <!--&lt;!&ndash;</div>&ndash;&gt;-->
        <!--&lt;!&ndash;</a>&ndash;&gt;-->

           <!--<a  href="{:U('Finance/live')}">-->
               <!--<div class="qk" style=" width:30%; float:right;height:30px; line-height:30px;" class="div0" onclick="ChangeBGC(this)">-->
                   <!--<p class="t1" style=" text-align:center; color:#2cd0da; ">存币生息</p>-->
               <!--</div>-->
           <!--</a>-->

           <!--<div  style=" width:5%; float:left;">&nbsp;&nbsp; </div>-->

       <!--</div>-->


    <!--<div style=" height:15px;"></div>-->
<!--</div>-->
<div style=" height:18px;"></div>
<div class="title1" >
    <div class=" col-xs-4" style="text-align:left">
        <a href="{:U('Account/index')}" style="color:#333;">
            <span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span>
        </a>
    </div>
    <div class=" col-xs-4">收益提取</div>
    <!--<div class=" col-xs-4" id="scan"><img src="__IMG__/richscan_icon.png" style="height:25px;float: right;"></div>-->
</div>
<!--<div style=" height:15px;"></div>-->
<!--<div class="t3" style=" padding-top:10px; font-size:18px;color: #FFF;">存币生息提取</div>-->
<!--<div style=" font-size:16px; color:#fff; padding-top:10px; margin-left:15px; padding-bottom:10px;">存币生息提取</div>-->
<div class="row-fluid qk">
    <div class=" t1" style="padding-top:1px; padding-left:15px;color: #333;width: 100%;">

    </div>
    <div style=" height:40px;background-color:#F1F3F4; margin:15px 15px 0px 15px;">
        <div class="t3" style=" float:left; height:40px; line-height:40px; color:#333; margin-left:10px; width:20%;">收益</div>
        <div style=" float:left; padding-left:10px; width:50%;">
            <input type="text" placeholder="输入数量" value="{$userData['z9']}" class="inputys" disabled>
        </div>
        <div class="t3" style=" float:right; height:40px;line-height:40px; margin-right:10px;">ASSET</div>
    </div>

    <div style=" height:40px;  background-color:#F1F3F4; margin:15px 15px 0px 15px;">
        <div class="t3" style=" float:left; height:40px; line-height:40px; color:#333; margin-left:10px; width:20%;">提取数量</div>
        <div style=" float:left; padding-left:10px; width:50%;">
            <input type="text" id="amount" placeholder="输入数量" class="inputys" >
        </div>
        <div class="t3" id="all" style=" float:right; height:40px; line-height:40px;padding-right:10px;color: #2cd0da;">全部</div>
    </div>
    <div style=" height:40px;  background-color:#F1F3F4; margin:15px 15px 0px 15px;">
        <div class="t3" style=" float:left; height:40px; line-height:40px; color:#333; margin-left:10px; width:20%;">支付密码</div>
        <div style=" float:left; padding-left:10px; width:50%;">
            <input type="text" id="password2" placeholder="请输入支付密码" class="inputys" >
        </div>
    </div>
    <div style=" font-size:16px;  padding-top:10px; margin-left:15px; padding-bottom:10px;">手续费：{$config['p41']*100}%</div>

    <div style=" margin:15px 15px 0px 15px;">
        <button id="btn-1" type="button" style="width: 100%;">确认提取</button>
        <!--<button id="btn-1" type="button" style="width: 49.2%;">确认提取</button>-->
        <!--<a href="{:U('Locked/record')}" style="color: #FFF;text-decoration:none;">-->
            <!--<button class="btn-2" type="button" style="width: 49.5%;">查看明细</button>-->
        <!--</a>-->
    </div>

    <div style=" height:15px;"></div>

</div>

<div class="row-fluid qk" style=" margin-top:15px; height:100%;">
    <div style=" font-size:16px; color:#fff; padding-top:10px; margin-left:15px; padding-bottom:10px;">提现记录</div>
    <div class="line1"></div>

    <volist name="chargeData" id="vo">
        <div style=" height:60px; padding-top:10px;">
            <div style=" float:left; padding-left:15px; padding-top:5px; ">
                <img src="__IMG__/logo_4.png"  width="30" height="33" />
            </div>
            <div style="float:left; padding-left:15px;">
                <div class="t1" >ASSET &nbsp;&nbsp;
                    <!--<span style=" color:#00ff00; font-size:12px;">提现</span>-->
                </div>
                <div class="t3">{$vo.create_time|date='Y-m-d H:i:s',###}</div>
            </div>

            <div style=" float:right; padding-right:15px; text-align:right;  padding-top:15PX;">
                {$vo.amount}
            </div>
        </div>
        <div class="line1"></div>
    </volist>

</div>
<!--<div id="page" style="text-align: center;height:50px;line-height: 50px;">{$page}</div>-->

<ul class="pages" id="page"  style="text-align: center;">{$page}</ul>


     <div style=" height:100px;"></div>

 </div>

    <div class=" ft">
        <div class="row">
            <!--<a href="{:U('Index/index')}"  >-->
                <a href="/index.php"  >
                    <div class="col-xs-3">
                      <img src="__IMG__/home.png" width="25" height="25"  />
                      <!--<p class="t6">{:L('_SY_')}</p>-->
                      <p class="t6">商城</p>
                    </div>
            </a>
            <a href="https://www.happycoin.pro"  >
                <div class="col-xs-3">
                    <img src="__IMG__/bourse.png" width="25" height="25"  />
                    <p class="t6">交易所</p>
                </div>
            </a>
            <a href="{:U('Market/index')}" >
                    <div class="col-xs-3">
                  <img src="__IMG__/logo_5.png" width="24" height="25"  />
                      <p class="t6">{:L('_HQ_')}</p>
                    </div>
            </a>

            <a href="{:U('Finance/index')}" >
                    <div class="col-xs-3">
                  <img src="__IMG__/zc-1.png" width="24" height="25"  />
                      <p class="t5">{:L('_ZC_')}</p>
                    </div>
            </a>

            <a href="{:U('Account/index')}" >
                    <div class="col-xs-3">
                   <img src="__IMG__/zh.png" width="21" height="25"  />
                      <p class="t6">{:L('_ZH_')}</p>
                    </div>
            </a>
        </div>
    </div>
</body>
</html>
<script type="text/javascript">

    $("#all").click(function() {
        $("#amount").val("{$userData['z9']}");
    });


    $("#btn-1").click(function(){

        var balance = "{$userData['z9']}";
        var amount = $("#amount").val();
        var password2 = $("#password2").val();

        if(amount == '')
        {
            amount = 0;
        }

        if(amount === ''||password2===''){
            layer.msg('不能为空',{time:1000});
            return false;
        }

        if(parseFloat(amount) <= 0)
        {
            layer.msg('数量不能为0',{time:1000});
            return false;
        }

        if(parseFloat(amount) > parseFloat(balance))

        {
            layer.msg('账户余额不足',{time:1000});
            return false;
        }

        layer.confirm("请确认："+amount+" ASSET ", {
          btn: ['是','否'] //按钮
        }, function(){

         $.ajax({
            type: 'POST',
            // url: "{:U('Locked/index')}",
            url: "__ACTION__",
            dataType: 'json',
            data: {
                amount:amount,
                password2:password2
            },
            success: function(data){
                 if(data.code>0){
                    layer.msg(data.message,{time:1000});

                    // window.location.href="{:U('Finance/index')}";
                    window.location.href="__ACTION__";
                 }
                 else{
                    layer.msg(data.message,{time:1000});
                 }
            }
        })


        }, function(){

        });

 });

</script>

